<?php
// +----------------------------------------------------------------------
// | PHP [ JUST YOU ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2017 http://www.jyphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: FlyingPig <flyingpigfp@163.com>
// +----------------------------------------------------------------------

namespace App\Model\QuicklyGrab;


use App\Model\Base;
use Illuminate\Support\Facades\DB;

class Rec extends Base
{

    protected $table = 't_quickly_grab_rec';

    protected $appends = ['type'];

    public function getTypeAttribute()
    {
        return DB::table('t_quickly_grab_info')->where('id', $this->quickly_grab_id)->value('type');
    }

}